<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>addStudent</title>
    <!-- 最新版本的 Bootstrap 核心 CSS 文件 -->
    <link rel="stylesheet" href="https://cdn.bootcdn.net/ajax/libs/twitter-bootstrap/3.4.1/css/bootstrap.min.css" integrity="sha384-HSMxcRTRxnN+Bdg0JdbxYKrThecOKuH5zCYotlSAcp1+c8xmyTe9GYg1l9a69psu" crossorigin="anonymous">
    <!-- 可选的 Bootstrap 主题文件（一般不用引入） -->
    <link rel="stylesheet" href="https://cdn.bootcdn.net/ajax/libs/twitter-bootstrap/3.4.1/css/bootstrap-theme.min.css" integrity="sha384-6pzBo3FDv/PJ8r2KRkGHifhEocL+1X2rVCTTkUfGk7/0pbek5mMa1upzvWbrUbOZ" crossorigin="anonymous">
    <!-- 最新的 Bootstrap 核心 JavaScript 文件 -->
    <script src="https://cdn.bootcdn.net/ajax/libs/twitter-bootstrap/3.4.1/js/bootstrap.min.js" integrity="sha384-aJ21OjlMXNL5UyIl/XNwTMqvzeRMZH2w8c5cRVpzpU8Y5bApTppSuUkhZXN0VxHd" crossorigin="anonymous"></script>

    <style>
        .form{
            width: 400px;
            margin: auto;
            text-align: center;
            font-size: 25px;
            border: 1px solid black;
        }
        .span{
            width: 150px;
            float: left;
            margin-left: 10px;
        }
    </style>
</head>
<body>
    <h1 style="text-align: center">录入成绩页</h1>
    <form class="form btn-outline-dark" th:action="@{/score/addScore}" method="post" style="margin: auto;background-color: blanchedalmond;text-align: center;font-size: 25px">

        <div style="display: inline-flex;width: 100%">
            <span class="span">学生Id:</span>
            <select class="form-control" style="width: 200px;float: right;" name="studentId">
                <option th:each="s:${students}"><span th:text="${s.getStudentId()}"></span></option>
            </select>
        </div> <br>
        <div style="display: inline-flex;width: 100%">
            <span class="span">课程Id:</span>
            <select class="form-control" style="width: 200px;float: right;" name="courseId">
                <option th:each="c:${courses}"><span th:text="${c.getCourseId()}"></span></option>
            </select>
        </div>
        <br/>
        <div style="display: inline-flex;width: 100%">
            <span class="span">学生成绩:</span>
            <input style="width: 200px;height: 34px;border-radius: 4px;float: right;" type="text"  name="scoreNum">
        </div>
        <br>
        <span class="span">相关操作:</span> <input type="submit" value="录入"> &nbsp;<input type="button" onclick="window.history.back()" value="返回">


    </form>
</body>
</html>